﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Automation;

namespace Dtf.Core.Controls
{
    public class Button : UIItem
    {

        public Button(UIItem uiItem)
            : base(uiItem)
        {
        }

        public void Invoke()
        {
            InvokePattern invoke = base.Element.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;
            invoke.Invoke();

        }
    }
}
